kanryu

test_sample.py

Aug 15th, 2012
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.71 KB | None | 0 0
  1. import unittest
  2. #import conf
  3.  
  4. class test_sample(object):
  5.     def setUp(self):
  6.         pass
  7.    
  8.        
  9.     def test_020_my(self):
  10.         assert 1 == 1
  11.  
  12.     def test_030_reset(self):
  13.         assert 1 == 0
  14.  
  15.  
  16. if __name__ == '__main__':
  17.     import nose
  18.     import nose_mine
  19.  
  20.     nose_conf = nose_mine.make_config()
  21.     runner = nose_mine.LoggedTextTestRunner(stream=nose_conf.stream,
  22.                                 verbosity=nose_conf.verbosity,
  23.                                 config=nose_conf)
  24.     result = nose.main(testRunner=runner, config=nose_conf, exit=False)
  25.     #config = dict(**conf.mail)
  26.     #config.update(
  27.     #    Name="test_sample2",
  28.     #)
  29.     #nose_mine.report_gmail(result, config)
Advertisement
Add Comment
Please, Sign In to add comment