small tidy-ups to tests
authorsalimfadhley <sal@stodge.org>
Mon, 17 Jun 2013 22:39:05 +0000 (23:39 +0100)
committerSalim Fadhley <sal@stodge.org>
Sun, 23 Jun 2013 20:21:51 +0000 (21:21 +0100)
jenkinsapi_tests/unittests/test_result_set.py
jenkinsapi_tests/unittests/test_view.py

index d51b4d4..95c63e0 100644 (file)
@@ -1,6 +1,5 @@
 import mock
 import unittest
-import datetime
 
 from jenkinsapi.result_set import ResultSet
 from jenkinsapi.result import Result
index e07ad31..cb9a8c6 100644 (file)
@@ -1,10 +1,8 @@
 import mock
 import unittest
-import datetime
 
 from jenkinsapi.view import View
 
-
 class TestView(unittest.TestCase):
 
     DATA = {'description': 'Important Shizz',
@@ -34,3 +32,6 @@ class TestView(unittest.TestCase):
         with self.assertRaises(AttributeError):
             self.v.id()
         self.assertEquals(self.v.name, 'FodFanFo')
+
+if __name__ == '__main__':
+    unittest.main()