コード例 #1
0
 def test_number_of_quotes(self):
     info, quotes = bash_quote.get_quotes()
     self.assertEqual(50, len(info), len(quotes))
     info, quotes = bash_quote.get_quotes(option='r', num_quotes=50)
     self.assertEqual(50, len(info), len(quotes))
     info, quotes = bash_quote.get_quotes(option='l', num_quotes=50)
     self.assertEqual(50, len(info), len(quotes))
     info, quotes = bash_quote.get_quotes(option='t', num_quotes=100)
     self.assertEqual(100, len(info), len(quotes))
コード例 #2
0
 def test_quotes_not_null(self):
     info, quotes = bash_quote.get_quotes()
     self.assertTrue(info[0], quotes[0])