示例#1
0
 def startTest(self, test):
     self.stream.write(
         self.__format_module(test) + lightgrey(".") +
         self.__format_class(test) + lightgrey(".") +
         format_test_method_name(test) + lightgrey(" : "))
     self.stream.flush()
     self.last_test = test
示例#2
0
文件: writer.py 项目: tomjelinek/pcs
 def startTest(self, test):
     self.stream.write(
         self.__format_module(test) + lightgrey(".")
         + self.__format_class(test) + lightgrey(".")
         + format_test_method_name(test) + lightgrey(" : ")
     )
     self.stream.flush()
     self.last_test = test
示例#3
0
文件: writer.py 项目: tomjelinek/pcs
 def __format_class(self, test):
     if not self.__is_new_class(test):
         return lightgrey(test.__class__.__name__)
     return test.__class__.__name__
示例#4
0
文件: writer.py 项目: tomjelinek/pcs
 def __format_module(self, test):
     if not self.__is_new_module(test):
         return lightgrey(test.__class__.__module__)
     return format_module(test)
示例#5
0
文件: writer.py 项目: zht750808/pcs
 def __format_class(self, test):
     if not self.__is_new_class(test):
         return lightgrey(test.__class__.__name__)
     return test.__class__.__name__
示例#6
0
文件: writer.py 项目: zht750808/pcs
 def __format_module(self, test):
     if not self.__is_new_module(test):
         return lightgrey(test.__class__.__module__)
     return format_module(test)