began work on submission test. nothing to see here
[mediagoblin.git] / mediagoblin / tests / test_submission.py
CommitLineData
1975b5dd
CM
1# GNU MediaGoblin -- federated, autonomous media hosting
2# Copyright (C) 2011 Free Software Foundation, Inc
3#
4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU Affero General Public License as published by
6# the Free Software Foundation, either version 3 of the License, or
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU Affero General Public License for more details.
13#
14# You should have received a copy of the GNU Affero General Public License
15# along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17import urlparse
18
19from nose.tools import assert_equal
20
21from mediagoblin.auth import lib as auth_lib
22from mediagoblin.tests.tools import setup_fresh_app
23from mediagoblin import mg_globals
24from mediagoblin import util
25
26#TEST_JPG = ''
27
28# TODO:
29# - Define test files as globals
30# - supported mime types
31# - unsupported mime type with supported extension
32# - Remove any imports that aren't neccessary
33# - Get setup fixture working
34
35class TestSubmission:
36 def setUp(self):
37 test_user = mg_globals.database.User()
38 test_user['username'] = u'chris'
39 test_user['email'] = u'chris@example.com'
40 test_user['pw_hash'] = auth_lib.bcrypt_gen_password_hash('toast')
41 test_user.save()
42
43 @setup_fresh_app
44 def test_something(test_app, self):
45 pass