def setUp(self): """Call before every test case.""" d = { u'salt': u'234', u'name': u'LastName', u'value': None, u'verifier_signatures': [] } self.empty_property = IdentityProperty() self.property = IdentityProperty(d)
def setUp(self): """Call before every test case.""" d = {u'salt': u'234', u'name': u'LastName', u'value': None, u'verifier_signatures': []} self.empty_property = IdentityProperty() self.property = IdentityProperty(d)
class TestIdentityProperty(unittest.TestCase): def setUp(self): """Call before every test case.""" d = {u'salt': u'234', u'name': u'LastName', u'value': None, u'verifier_signatures': []} self.empty_property = IdentityProperty() self.property = IdentityProperty(d) def test_identity_property_empty(self): self.assertEquals(self.empty_property.name, "") def test_identity_property_last_name(self): self.assertEquals(self.property.name, "LastName") def test_identity_property_to_json(self): self.property.to_json()
class TestIdentityProperty(unittest.TestCase): def setUp(self): """Call before every test case.""" d = { u'salt': u'234', u'name': u'LastName', u'value': None, u'verifier_signatures': [] } self.empty_property = IdentityProperty() self.property = IdentityProperty(d) def test_identity_property_empty(self): self.assertEquals(self.empty_property.name, "") def test_identity_property_last_name(self): self.assertEquals(self.property.name, "LastName") def test_identity_property_to_json(self): self.property.to_json()