Package telemeta :: Package tests :: Module model_tests :: Class CollectionItemTestCase
[hide private]
[frames] | no frames]

Class CollectionItemTestCase

source code

unittest.TestCase --+
                    |
                   CollectionItemTestCase

Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Create a test database based on objects created in Django
source code
 
tearDown(self)
Hook method for deconstructing the test fixture after testing it.
source code
 
testQuickSearchOnCollections(self)
Test quick_search property of MediaCollection class
source code
 
testQuickSearchOnItems(self)
Test quick_search property of MediaItem class
source code
 
testWordSearch(self)
Test quick_search property of MediaCollection class, specificly quick_search on collection title
source code
 
testLocationSearch(self)
Test by_country and by_continent properties of MediaCollection class
source code
 
testRecordingYear(self)
Test by_recording_year property of MediaCollection class
source code
 
testPublishYearOnCollection(self)
Test by_publish_year property of MediaCollection class
source code
 
testEthnicGroup(self)
Test by_ethnic_group property of MediaCollection class
source code
 
testRecordingDate(self)
Test by_recording_date property of MediaItem class
source code
 
testTitle(self)
Test by_title property of MediaItem class
source code
 
testPublishYearOnItem(self)
Test by_publish_year property of MediaItem class
source code
 
testWordSearchCore(self)
Test word_search property of CoreQuerySet class
source code
 
testByChangeTimeOnCollection(self)
Test by_change_time property of MediaCollection class
source code
 
testByChangeTimeOnItem(self)
Test by_change_time property of MediaItem class
source code
 
testWithoutCollection(self)
Test without_collection property of MediaItem class
source code
 
testCodeRequired(self)
Test that a proper failure occur when a collection code isn't provided
source code
 
testDomForeignKey(self)
Test DOM foreign key embedding
source code
 
testLocationRelation(self)
Test location country and continent resolving
source code
 
testCollectionCountries(self)
Test the MediaCollection.countries() method
source code

Inherited from unittest.TestCase: __call__, __init__, __repr__, __str__, assertAlmostEqual, assertAlmostEquals, assertEqual, assertEquals, assertFalse, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertRaises, assertTrue, assert_, countTestCases, debug, defaultTestResult, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, shortDescription

Inherited from unittest.TestCase (private): _exc_info

Method Details [hide private]

setUp(self)

source code 

Create a test database based on objects created in Django

Overrides: unittest.TestCase.setUp

tearDown(self)

source code 

Hook method for deconstructing the test fixture after testing it.

Overrides: unittest.TestCase.tearDown
(inherited documentation)