Exemple #1
0
class TestFieldCompare:
    def setup(self):
        self.first = Field()
        self.first.set_value('abc')
        self.second = Field()
        self.second.set_value('def')

    def test_compare(self):
        assert self.first != self.second
        assert self.first != 'abc123'

    def test_compare_empty(self):
        empty = Field()

        assert not self.first.empty()
        assert empty.empty()
Exemple #2
0
    def test_compare_empty(self):
        empty = Field()

        assert not self.first.empty()
        assert empty.empty()