예제 #1
0
파일: test_value.py 프로젝트: hibtc/madseq
 def test_list(self):
     self.assertEqual(format_value([1.1, 2]), '{1.1,2}')
예제 #2
0
파일: test_value.py 프로젝트: hibtc/madseq
 def test_tuple(self):
     self.assertEqual(format_value((1.1, 2)), '{1.1,2}')
예제 #3
0
파일: test_value.py 프로젝트: hibtc/madseq
 def test_int(self):
     self.assertEqual(format_value(-13), '-13')
예제 #4
0
파일: test_value.py 프로젝트: hibtc/madseq
 def test_float(self):
     self.assertEqual(format_value(-1.2), '-1.2')
예제 #5
0
파일: test_value.py 프로젝트: hibtc/madseq
 def test_str(self):
     self.assertEqual(format_value(" foo bar "), '" foo bar "')
예제 #6
0
파일: test_value.py 프로젝트: hibtc/madseq
 def test_Decimal(self):
     self.assertEqual(format_value(Decimal('1.2e-1')), '0.12')