Drop unicode prefix
This commit is contained in:
parent
1fd19f37b9
commit
e9aa9298f0
@ -1,8 +1,11 @@
|
|||||||
# -*- encoding: utf-8 -*-
|
# -*- encoding: utf-8 -*-
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
TEST_CITY_1 = u'B€rkeley'
|
|
||||||
TEST_CITY_2 = u'G€lway'
|
TEST_CITY_1 = 'B€rkeley'
|
||||||
|
TEST_CITY_2 = 'G€lway'
|
||||||
|
|
||||||
TEST_DATA = [
|
TEST_DATA = [
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import unittest
|
import unittest
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
@ -118,7 +120,7 @@ class DatabaseTestCase(unittest.TestCase):
|
|||||||
with self.db as tx:
|
with self.db as tx:
|
||||||
tx['weather'].insert({'date': datetime(2011, 1, 1),
|
tx['weather'].insert({'date': datetime(2011, 1, 1),
|
||||||
'temperature': 1,
|
'temperature': 1,
|
||||||
'place': u'tmp_place'})
|
'place': 'tmp_place'})
|
||||||
raise ValueError()
|
raise ValueError()
|
||||||
assert len(self.db['weather']) == init_length
|
assert len(self.db['weather']) == init_length
|
||||||
|
|
||||||
@ -130,7 +132,7 @@ class DatabaseTestCase(unittest.TestCase):
|
|||||||
return
|
return
|
||||||
with self.assertRaises(SQLAlchemyError):
|
with self.assertRaises(SQLAlchemyError):
|
||||||
tbl = self.db['weather']
|
tbl = self.db['weather']
|
||||||
tbl.insert({'date': True, 'temperature': 'wrong_value', 'place': u'tmp_place'})
|
tbl.insert({'date': True, 'temperature': 'wrong_value', 'place': 'tmp_place'})
|
||||||
|
|
||||||
def test_load_table(self):
|
def test_load_table(self):
|
||||||
tbl = self.db.load_table('weather')
|
tbl = self.db.load_table('weather')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user