Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
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()
Esempio n. 4
0
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()