def setup(self): self.input = grammar(input) self.expected = grammar(expected)
def setup(self): self.gram = grammar(data)
def test_not_equal_if_different_init(self): other = grammar(data) other.init = 'A' assert_not_equal(self.gram, other)
def test_not_equal_if_different_prods(self): other = grammar(data + [('A', ('b'))]) assert_not_equal(self.gram, other)
def test_equal_if_same_init_and_prods(self): other = grammar(data) assert_equal(self.gram, other)