MCPcopy Create free account
hub / github.com/PostmonAPI/postmon / assertCep

Method assertCep

test/postmon_test.py:79–91  ·  view source on GitHub ↗
(self, cep)

Source from the content-addressed store, hash-verified

77 return self.tracker.track(cep)
78
79 def assertCep(self, cep):
80
81 result = self.get_cep(cep)
82 expected = self.expected.get(cep, [])
83
84 self.assertEqual(len(expected), len(result))
85
86 for e, r in zip(expected, result):
87 for key, value in e.items():
88 self.assertIn(key, r)
89 self.assertEqual(value, r[key])
90
91 self.assertIn('v_date', r)
92
93
94class CepTrackerMockTest(CepTrackerTest):

Callers 5

test_cep_com_ruaMethod · 0.45
test_cep_sem_ruaMethod · 0.45
test_cep_inexistenteMethod · 0.45

Calls 1

get_cepMethod · 0.95

Tested by

no test coverage detected