<s> from django . test import TestCase <EOL> from django . core . urlresolvers import reverse <EOL> class FilteredListView ( TestCase ) : <EOL> fixtures = [ '<STR_LIT>' ] <EOL> def test_empty_get ( self ) : <EOL> url = reverse ( '<STR_LIT>' ) <EOL> response = self . client . get ( url ) <EOL> self . assertEqual ( response . status_code , <NUM_LIT:200> ) <EOL> def test_order_by_get ( self ) : <EOL> url = reverse ( '<STR_LIT>' ) + '<STR_LIT>' <EOL> response = self . client . get ( url ) <EOL> self . assertEqual ( response . status_code , <NUM_LIT:200> ) <EOL> def test_query ( self ) : <EOL> url = reverse ( '<STR_LIT>' ) + '<STR_LIT>' <EOL> response = self . client . get ( url ) <EOL> self . assertEqual ( response . status_code , <NUM_LIT:200> ) <EOL> self . assertEqual ( len ( response . context [ '<STR_LIT>' ] ) , <NUM_LIT:1> ) </s>
