3b6c2d734cc19edabe4530728b3c4f1b05d0fce4,Orange/tests/test_tab_reader.py,TestTabReader,test_metadata,#TestTabReader#,209
Before Change
def test_metadata(self):
tempdir = tempfile.mkdtemp()
table = Table("titanic")
table.attributes = OrderedDict()
table.attributes["a"] = "aa"
table.attributes["b"] = "bb"
fname = path.join(tempdir, "out.tab")
TabReader.write_table_metadata(fname, table)
self.assertTrue(path.isfile(fname + ".metadata"))
shutil.rmtree(tempdir)
def test_no_metadata(self):
After Change
def test_metadata(self):
tempdir = tempfile.mkdtemp()
try:
table = Table("titanic")
table.attributes = OrderedDict()
table.attributes["a"] = "aa"
table.attributes["b"] = "bb"
fname = path.join(tempdir, "out.tab")
TabReader.write_table_metadata(fname, table)
self.assertTrue(path.isfile(fname + ".metadata"))
finally:
shutil.rmtree(tempdir)
def test_no_metadata(self):
tempdir = tempfile.mkdtemp()
try:
table = Table("titanic")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: biolab/orange3
Commit Name: 3b6c2d734cc19edabe4530728b3c4f1b05d0fce4
Time: 2017-05-03
Author: marko.toplak@gmail.com
File Name: Orange/tests/test_tab_reader.py
Class Name: TestTabReader
Method Name: test_metadata
Project Name: biolab/orange3
Commit Name: 3b6c2d734cc19edabe4530728b3c4f1b05d0fce4
Time: 2017-05-03
Author: marko.toplak@gmail.com
File Name: Orange/tests/test_tab_reader.py
Class Name: TestTabReader
Method Name: test_no_metadata
Project Name: biolab/orange3
Commit Name: 3b6c2d734cc19edabe4530728b3c4f1b05d0fce4
Time: 2017-05-03
Author: marko.toplak@gmail.com
File Name: Orange/tests/test_tab_reader.py
Class Name: TestTabReader
Method Name: test_had_metadata_now_there_is_none