Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 def test_get_single_customer_not_found(self):
     usage_customer = customers.get_customer(tests.CONNECTION, 1000000)
     self.assertIsNone(usage_customer)
Ejemplo n.º 3
0
 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)
Ejemplo n.º 4
0
 def test_get_single_customer_not_found(self):
     usage_customer = customers.get_customer(tests.CONNECTION, 1000000)
     self.assertIsNone(usage_customer)