Exemplo n.º 1
0
    def test_to_ref(self):
        employee = Employee()
        employee.DisplayName = "test"
        employee.Id = 100

        ref = employee.to_ref()

        self.assertEqual(ref.name, "test")
        self.assertEqual(ref.type, "Employee")
        self.assertEqual(ref.value, 100)
Exemplo n.º 2
0
    def test_to_ref(self):
        employee = Employee()
        employee.DisplayName = "test"
        employee.Id = 100

        ref = employee.to_ref()

        self.assertEquals(ref.name, "test")
        self.assertEquals(ref.type, "Employee")
        self.assertEquals(ref.value, 100)
Exemplo n.º 3
0
    def test_unicode(self):
        employee = Employee()
        employee.DisplayName = "test"

        self.assertEqual(str(employee), "test")
Exemplo n.º 4
0
    def test_unicode(self):
        employee = Employee()
        employee.DisplayName = "test"

        self.assertEquals(str(employee), "test")