This commit is contained in:
Piotr Zalewa 2010-10-04 16:01:13 +01:00
Родитель ffcca23f95
Коммит b24893c680
2 изменённых файлов: 35 добавлений и 0 удалений

17
.gitignore поставляемый Normal file
Просмотреть файл

@ -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)