def test_build_line_with_none(self): line = Explanation.build_line(None, 'A', is_repr=True) expect(line).to.eq('A = None\n')
def test_build_line_with_is_repr(self): line = Explanation.build_line('a', 'A', is_repr=True) expect(line).to.eq("A = 'a'\n")
def test_build_line_with_empty_str(self): line = Explanation.build_line('', 'A', is_repr=False) expect(line).to.eq('A = \n')
def test_build_line_with_int(self): line = Explanation.build_line(1, 'A', is_repr=False) expect(line).to.eq('A = 1\n')