'Tests apps.get_model().'

@override_settings(INSTALLED_APPS=SOME_INSTALLED_APPS)
def test_get_model(self):

    self.assertEqual(apps.get_model('admin', 'LogEntry'), LogEntry)
    with self.assertRaises(LookupError):
        apps.get_model('admin', 'LogExit')
    self.assertEqual(apps.get_model('admin', 'loGentrY'), LogEntry)
    with self.assertRaises(LookupError):
        apps.get_model('Admin', 'LogEntry')
    self.assertEqual(apps.get_model('admin.LogEntry'), LogEntry)
    with self.assertRaises(LookupError):
        apps.get_model('admin.LogExit')
    with self.assertRaises(ValueError):
        apps.get_model('admin_LogEntry')
