def test_list_business_modules(self):
    self.client.force_authenticate(user=get_user_model().objects.get(username='normal_user'))
    url = reverse('businessmodules-list')
    response = self.client.get(url, format='json')
    self.assertEqual(response.status_code, status.HTTP_200_OK)
    self.assertEqual(self._get_business_status_code(response), status.HTTP_200_OK)
    self.assertEqual(response.data, OrderedDict([('status', 200), ('msg', '成功'), ('data', OrderedDict([('total', 2), ('next', None), ('previous', None), ('results', [OrderedDict([('id', 2), ('name', 'parking car'), ('level', 1), ('parent', 'parking'), ('parentId', 1), ('disabled', True)]), OrderedDict([('id', 1), ('name', 'parking'), ('level', 0), ('parent', None), ('parentId', None), ('disabled', False)])])]))]))
def test_list_business_modules(self):
    self.client.force_authenticate(user=get_user_model().objects.get(username='normal_user'))
    url = reverse('businessmodules-list')
    response = self.client.get(url, format='json')
    self.assertEqual(response.status_code, status.HTTP_200_OK)
    self.assertEqual(self._get_business_status_code(response), status.HTTP_200_OK)
    self.assertEqual(response.data, OrderedDict([('status', 200), ('msg', '成功'), ('data', OrderedDict([('total', 2), ('next', None), ('previous', None), ('results', [OrderedDict([('id', 2), ('name', 'parking car'), ('level', 1), ('parent', 'parking'), ('parentId', 1), ('disabled', True)]), OrderedDict([('id', 1), ('name', 'parking'), ('level', 0), ('parent', None), ('parentId', None), ('disabled', False)])])]))]))