def test_exp_notation_floating(self):
     s = '1.073e2.25'
     self.assertFalse(tinyplot.can_be_float(s))
 def test_unsigned_int(self):
     s = '1'
     self.assertTrue(tinyplot.can_be_float(s))
 def test_string_ascii_sentence(self):
     s = 'The quick brown fox jumps over the lazy dog'
     self.assertFalse(tinyplot.can_be_float(s))
 def test_string_unicode_sentence(self):
     s = 'Аэрофотосъёмка ландшафта уже выявила земли богачей и процветающих крестьян'
     self.assertFalse(tinyplot.can_be_float(s))
 def test_string_word(self):
     s = 'Rag'
     self.assertFalse(tinyplot.can_be_float(s))
 def test_exp_notation_negative(self):
     s = '-1e-17'
     self.assertTrue(tinyplot.can_be_float(s))
 def test_exp_notation_positive(self):
     s = '1e17'
     self.assertTrue(tinyplot.can_be_float(s))
 def test_signed_real(self):
     s = '-2.232'
     self.assertTrue(tinyplot.can_be_float(s))
 def test_unsigned_real(self):
     s = '2.25'
     self.assertTrue(tinyplot.can_be_float(s))