Ejemplo n.º 1
0
    def test_statement_none_qualifier(self):
        s = Statement('foo')
        s.add_qualifier(None)
        self.assertEquals(s.quals, [])

        s.add_qualifier(None, force=True)
        s.force = False
Ejemplo n.º 2
0
    def test_statement_none_qualifier(self):
        s = Statement('foo')
        s.add_qualifier(None)
        self.assertEqual(s.quals, [])

        s.add_qualifier(None, force=True)
        s.force = False
Ejemplo n.º 3
0
    def test_statement_inequality(self):
        s = Statement('novalue')
        s_special = Statement('novalue', special=True)
        s_force = Statement('novalue')
        s_force.force = True

        self.assertNotEquals(s, s_special)
        self.assertNotEquals(s, s_force)
        self.assertNotEquals(s_force, s_special)
Ejemplo n.º 4
0
    def test_statement_inequality(self):
        s = Statement('novalue')
        s_special = Statement('novalue', special=True)
        s_force = Statement('novalue')
        s_force.force = True

        self.assertNotEquals(s, s_special)
        self.assertNotEquals(s, s_force)
        self.assertNotEquals(s_force, s_special)