Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

from django.test import SimpleTestCase 

 

from fandoms.forms import FilterFanficsByFandom 

 

 

class FilterFanficsByFandomTest(SimpleTestCase): 

 

def test_valid_form(self): 

""" Validate form """ 

data = {'sort_by': 1, 'genre': "adv", "language": 'English', 

'length': 1, "status": 2, "rating": 1, "character_a": 14, 

"character_b": 12} 

form = FilterFanficsByFandom(data) 

self.assertTrue(form.is_valid())