Corrected several typos in string literals and test names.
This commit is contained in:
parent
052388aba4
commit
65e86948b8
|
@ -65,7 +65,7 @@ to_pretty_wkt = string_output(
|
||||||
# Memory leak fixed in GDAL 1.5; still exists in 1.4.
|
# Memory leak fixed in GDAL 1.5; still exists in 1.4.
|
||||||
to_xml = string_output(lgdal.OSRExportToXML, [c_void_p, POINTER(c_char_p), c_char_p], offset=-2, decoding='utf-8')
|
to_xml = string_output(lgdal.OSRExportToXML, [c_void_p, POINTER(c_char_p), c_char_p], offset=-2, decoding='utf-8')
|
||||||
|
|
||||||
# String attribute retrival routines.
|
# String attribute retrieval routines.
|
||||||
get_attr_value = const_string_output(std_call('OSRGetAttrValue'), [c_void_p, c_char_p, c_int], decoding='utf-8')
|
get_attr_value = const_string_output(std_call('OSRGetAttrValue'), [c_void_p, c_char_p, c_int], decoding='utf-8')
|
||||||
get_auth_name = const_string_output(lgdal.OSRGetAuthorityName, [c_void_p, c_char_p], decoding='ascii')
|
get_auth_name = const_string_output(lgdal.OSRGetAuthorityName, [c_void_p, c_char_p], decoding='ascii')
|
||||||
get_auth_code = const_string_output(lgdal.OSRGetAuthorityCode, [c_void_p, c_char_p], decoding='ascii')
|
get_auth_code = const_string_output(lgdal.OSRGetAuthorityCode, [c_void_p, c_char_p], decoding='ascii')
|
||||||
|
|
|
@ -52,7 +52,7 @@ class SkipFile(UploadFileException):
|
||||||
|
|
||||||
class StopFutureHandlers(UploadFileException):
|
class StopFutureHandlers(UploadFileException):
|
||||||
"""
|
"""
|
||||||
Upload handers that have handled a file and do not want future handlers to
|
Upload handlers that have handled a file and do not want future handlers to
|
||||||
run should raise this exception instead of returning None.
|
run should raise this exception instead of returning None.
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -86,7 +86,7 @@ def sanitize_address(addr, encoding):
|
||||||
if rest:
|
if rest:
|
||||||
# The entire email address must be parsed.
|
# The entire email address must be parsed.
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
'Invalid adddress; only %s could be parsed from "%s"'
|
'Invalid address; only %s could be parsed from "%s"'
|
||||||
% (token, addr)
|
% (token, addr)
|
||||||
)
|
)
|
||||||
nm = token.display_name or ''
|
nm = token.display_name or ''
|
||||||
|
|
|
@ -377,7 +377,7 @@ class AggregationTests(TestCase):
|
||||||
{'c__max': 3}
|
{'c__max': 3}
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_conditional_aggreate(self):
|
def test_conditional_aggregate(self):
|
||||||
# Conditional aggregation of a grouped queryset.
|
# Conditional aggregation of a grouped queryset.
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
Book.objects.annotate(c=Count('authors')).values('pk').aggregate(test=Sum(
|
Book.objects.annotate(c=Count('authors')).values('pk').aggregate(test=Sum(
|
||||||
|
|
|
@ -520,8 +520,8 @@ class FileStorageTests(SimpleTestCase):
|
||||||
)
|
)
|
||||||
defaults_storage = self.storage_class()
|
defaults_storage = self.storage_class()
|
||||||
settings = {
|
settings = {
|
||||||
'MEDIA_ROOT': 'overriden_media_root',
|
'MEDIA_ROOT': 'overridden_media_root',
|
||||||
'MEDIA_URL': 'overriden_media_url/',
|
'MEDIA_URL': 'overridden_media_url/',
|
||||||
'FILE_UPLOAD_PERMISSIONS': 0o333,
|
'FILE_UPLOAD_PERMISSIONS': 0o333,
|
||||||
'FILE_UPLOAD_DIRECTORY_PERMISSIONS': 0o333,
|
'FILE_UPLOAD_DIRECTORY_PERMISSIONS': 0o333,
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,7 +122,7 @@ class SelectTest(WidgetTest):
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_choices_constuctor(self):
|
def test_choices_constructor(self):
|
||||||
widget = Select(choices=[(1, 1), (2, 2), (3, 3)])
|
widget = Select(choices=[(1, 1), (2, 2), (3, 3)])
|
||||||
self.check_html(widget, 'num', 2, html=(
|
self.check_html(widget, 'num', 2, html=(
|
||||||
"""<select name="num">
|
"""<select name="num">
|
||||||
|
|
|
@ -6,7 +6,7 @@ from .models import Article, Reporter, Writer
|
||||||
|
|
||||||
|
|
||||||
class M2MIntermediaryTests(TestCase):
|
class M2MIntermediaryTests(TestCase):
|
||||||
def test_intermeiary(self):
|
def test_intermediary(self):
|
||||||
r1 = Reporter.objects.create(first_name="John", last_name="Smith")
|
r1 = Reporter.objects.create(first_name="John", last_name="Smith")
|
||||||
r2 = Reporter.objects.create(first_name="Jane", last_name="Doe")
|
r2 = Reporter.objects.create(first_name="Jane", last_name="Doe")
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,7 @@ class MigrateTests(MigrationTestBase):
|
||||||
call_command('migrate', app_label='unmigrated_app_syncdb')
|
call_command('migrate', app_label='unmigrated_app_syncdb')
|
||||||
|
|
||||||
@override_settings(MIGRATION_MODULES={'migrations': 'migrations.test_migrations_clashing_prefix'})
|
@override_settings(MIGRATION_MODULES={'migrations': 'migrations.test_migrations_clashing_prefix'})
|
||||||
def test_ambigious_prefix(self):
|
def test_ambiguous_prefix(self):
|
||||||
msg = (
|
msg = (
|
||||||
"More than one migration matches 'a' in app 'migrations'. Please "
|
"More than one migration matches 'a' in app 'migrations'. Please "
|
||||||
"be more specific."
|
"be more specific."
|
||||||
|
|
|
@ -55,7 +55,7 @@ class SerializerRegistrationTests(SimpleTestCase):
|
||||||
serializers.unregister_serializer("nonsense")
|
serializers.unregister_serializer("nonsense")
|
||||||
|
|
||||||
def test_builtin_serializers(self):
|
def test_builtin_serializers(self):
|
||||||
"Requesting a list of serializer formats popuates the registry"
|
"Requesting a list of serializer formats populates the registry"
|
||||||
all_formats = set(serializers.get_serializer_formats())
|
all_formats = set(serializers.get_serializer_formats())
|
||||||
public_formats = set(serializers.get_public_serializer_formats())
|
public_formats = set(serializers.get_public_serializer_formats())
|
||||||
|
|
||||||
|
|
|
@ -292,7 +292,7 @@ class DummyBackendTest(unittest.TestCase):
|
||||||
class AliasedDefaultTestSetupTest(unittest.TestCase):
|
class AliasedDefaultTestSetupTest(unittest.TestCase):
|
||||||
def test_setup_aliased_default_database(self):
|
def test_setup_aliased_default_database(self):
|
||||||
"""
|
"""
|
||||||
setup_datebases() doesn't fail when 'default' is aliased
|
setup_databases() doesn't fail when 'default' is aliased
|
||||||
"""
|
"""
|
||||||
tested_connections = db.ConnectionHandler({
|
tested_connections = db.ConnectionHandler({
|
||||||
'default': {
|
'default': {
|
||||||
|
|
Loading…
Reference in New Issue