def test_form_valid_missing_fields(self):
     form_data = {
         'organization': 'ucb',
         'username': '******',
         'password': '******',
         'role': 'student',
         'login_shell': '/bin/bash',
     }
     form = ProjectAccountRequestForm(data=form_data)
     self.assertFalse(form.is_valid())
 def test_form_valid(self):
     form_data = {
         'projects': [proj.pk for proj in Project.objects.all()],
         'organization': 'ucb',
         'username': '******',
         'password': '******',
         'role': 'student',
         'login_shell': '/bin/bash',
     }
     form = ProjectAccountRequestForm(data=form_data)
     self.assertTrue(form.is_valid())