Permalink
Browse files

forgotten files added

  • Loading branch information...
1 parent ffcca23 commit b24893c680da54b35fadbcff7a793b63c54f5f01 @zalun zalun committed Oct 4, 2010
Showing with 35 additions and 0 deletions.
  1. +17 −0 .gitignore
  2. +18 −0 flightdeck/jetpack/tests/library_tests.py
View
@@ -0,0 +1,17 @@
+# git-ls-files --others --exclude-from=.git/info/exclude
+# Lines that start with '#' are comments.
+# For a project mostly in C, the following would be a good set of
+# exclude patterns (uncomment them if you want to use them):
+# *.[oa]
+# *~
+adminmedia
+flightdeckenv
+flightdeck/media/jetpack
+flightdeck/media/tutorial
+# flightdeck/media/bespin
+flightdeck/media/codemirror
+flightdeck/media/roar
+flightdeck/media/api
+flightdeck/jetpack/media/media
+upload
+
@@ -0,0 +1,18 @@
+from test_utils import TestCase
+
+from django.contrib.auth.models import User
+
+from jetpack.models import Package
+
+
+class LibraryTest(TestCase):
+ fixtures = ['mozilla_user', 'users', 'core_sdk', 'packages']
+
+ def setUp(self):
+ self.author = User.objects.get(username='john')
+
+ def test_library_has_no_main_module(self):
+ " library has no executable module "
+ lib = Package.objects.get(type='l', author=self.author)
+ self.assertEqual(lib.latest.get_main_module(), None)
+

0 comments on commit b24893c

Please sign in to comment.