示例#1
0
 def test_attometers_array(self):
     """
     This is a functional test of attometers() with array input
     """
     try:
         angstroms_to.attometers(np.linspace(1.0, 5.0, num=5))
         print('{:.40s}{}'.format(
             sys._getframe().f_code.co_name + self.padding, self.passed))
     except SystemExit:
         print('{:.40s}{}'.format(
             sys._getframe().f_code.co_name + self.padding, self.failed))
示例#2
0
 def test_attometers_break2(self):
     """
     This is a break test of attometers() for a string
     """
     try:
         angstroms_to.attometers(['Test String', 'Test Two'])
         print('{:.40s}{}'.format(
             sys._getframe().f_code.co_name + self.padding, self.failed))
     except SystemExit:
         print('{:.40s}{}'.format(
             sys._getframe().f_code.co_name + self.padding, self.passed))