示例#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')