Ejemplo n.º 1
0
    def test_str_empty_value_save_load(self):

        value1 = SimpleEntity(name='results_link')
        value2 = SimpleEntity(name=value1.name)
        self.assertEqual(value1, value2)

        self.assertFalse(value1.is_actual())
        self.assertFalse(value2.is_actual())

        self._test_save_load(value1)
        self._test_save_load(value2)
Ejemplo n.º 2
0
    def test_str_empty_value_save_load(self):

        value1 = SimpleEntity(name='results_link')
        value2 = SimpleEntity(name=value1.name)
        self.assertEqual(value1, value2)

        self.assertFalse(value1.is_actual())
        self.assertFalse(value2.is_actual())

        self._test_save_load(value1)
        self._test_save_load(value2)
Ejemplo n.º 3
0
    def test_str_value(self):

        value1 = SimpleEntity('http://buildsrv.com/results.out')
        value2 = SimpleEntity('http://buildsrv.com/results.out')

        self._test_save_load(value1)

        self.assertEqual(value1, value1)
        self.assertEqual(value1, value2)

        self.assertTrue(value1.is_actual())

        self._test_save_load(value2)

        value2 = SimpleEntity('http://buildsrv.com/results2.out')
        self.assertNotEqual(value1, value2)
Ejemplo n.º 4
0
    def test_str_value(self):

        value1 = SimpleEntity('http://buildsrv.com/results.out')
        value2 = SimpleEntity('http://buildsrv.com/results.out')

        self._test_save_load(value1)

        self.assertEqual(value1, value1)
        self.assertEqual(value1, value2)

        self.assertTrue(value1.is_actual())

        self._test_save_load(value2)

        value2 = SimpleEntity('http://buildsrv.com/results2.out')
        self.assertNotEqual(value1, value2)