Exemplo n.º 1
0
 def test_build_line_with_none(self):
     line = Explanation.build_line(None, 'A', is_repr=True)
     expect(line).to.eq('A = None\n')
Exemplo n.º 2
0
 def test_build_line_with_is_repr(self):
     line = Explanation.build_line('a', 'A', is_repr=True)
     expect(line).to.eq("A = 'a'\n")
Exemplo n.º 3
0
 def test_build_line_with_empty_str(self):
     line = Explanation.build_line('', 'A', is_repr=False)
     expect(line).to.eq('A = \n')
Exemplo n.º 4
0
 def test_build_line_with_int(self):
     line = Explanation.build_line(1, 'A', is_repr=False)
     expect(line).to.eq('A = 1\n')
Exemplo n.º 5
0
 def test_build_line_with_none(self):
     line = Explanation.build_line(None, 'A', is_repr=True)
     expect(line).to.eq('A = None\n')
Exemplo n.º 6
0
 def test_build_line_with_empty_str(self):
     line = Explanation.build_line('', 'A', is_repr=False)
     expect(line).to.eq('A = \n')
Exemplo n.º 7
0
 def test_build_line_with_is_repr(self):
     line = Explanation.build_line('a', 'A', is_repr=True)
     expect(line).to.eq("A = 'a'\n")
Exemplo n.º 8
0
 def test_build_line_with_int(self):
     line = Explanation.build_line(1, 'A', is_repr=False)
     expect(line).to.eq('A = 1\n')