def test_get_single_customer(self): usage_customer = customers.get_customer(tests.CONNECTION, 1) c1_dict = { 'country': 'United States', 'customer_id': '1', 'postal_code': '78232', 'name': '1018700' } self.assertDictEqual(usage_customer, c1_dict)
def test_get_single_customer_not_found(self): usage_customer = customers.get_customer(tests.CONNECTION, 1000000) self.assertIsNone(usage_customer)
def test_get_single_customer(self): usage_customer = customers.get_customer(tests.CONNECTION, 1) c1_dict = {'country': 'United States', 'customer_id': '1', 'postal_code': '78232', 'name': '1018700'} self.assertDictEqual(usage_customer, c1_dict)