예제 #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')
예제 #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")
예제 #3
0
 def test_build_line_with_empty_str(self):
     line = Explanation.build_line('', 'A', is_repr=False)
     expect(line).to.eq('A = \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')
예제 #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')
예제 #6
0
 def test_build_line_with_empty_str(self):
     line = Explanation.build_line('', 'A', is_repr=False)
     expect(line).to.eq('A = \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")
예제 #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')