示例#1
0
    def test_datetime(self):
        from datetime import datetime

        dt = datetime(1985, 11, 26, 1, 20)
        self.assertEqual("datetime(1985, 11, 26)", get_string_repr(dt))
示例#2
0
 def test_string_nooptional(self):
     d = String()
     self.assertEqual("String()", get_string_repr(d))
示例#3
0
 def test_inputselector_1param(self):
     i = InputSelector("filename")
     self.assertEqual('InputSelector(input_to_select="filename")',
                      get_string_repr(i))
示例#4
0
 def test_tooloutput(self):
     o = ToolOutput("tag", String())
     self.assertEqual('ToolOutput(tag="tag", output_type=String())',
                      get_string_repr(o))
示例#5
0
 def test_csv_optional(self):
     d = Csv(optional=True)
     self.assertEqual("Csv(optional=True)", get_string_repr(d))
示例#6
0
 def test_csv_nooptional(self):
     d = Csv(optional=False)
     self.assertEqual("Csv()", get_string_repr(d))
示例#7
0
 def test_file_optional(self):
     d = File(optional=True)
     self.assertEqual("File(optional=True)", get_string_repr(d))
示例#8
0
 def test_file_nooptional(self):
     d = File()
     self.assertEqual("File()", get_string_repr(d))
示例#9
0
 def test_string_optional(self):
     d = String(optional=True)
     self.assertEqual("String(optional=True)", get_string_repr(d))