示例#1
0
 def test_01_04_get_image_by_name(self):
     ip = I.load_imageplus(self.file_name)
     title = W.make_unique_name("Whatever")
     ip.setTitle(title)
     self.assertEqual(ip.getTitle(), title)
     ip.show()
     ip_other = W.get_image_by_name(title)
     self.assertEqual(ip_other.getID(), ip.getID())
 def test_01_04_get_image_by_name(self):
     ip = I.load_imageplus(self.file_name)
     title = W.make_unique_name("Whatever")
     ip.setTitle(title)
     self.assertEqual(ip.getTitle(), title)
     ip.show()
     ip_other = W.get_image_by_name(title)
     self.assertEqual(ip_other.getID(), ip.getID())
 def test_01_04_get_image_by_name(self):
     file_name = os.path.join(example_images_directory(), "ExampleSBSImages", "Channel1-01-A-01.tif")
     ip = I.load_imageplus(file_name)
     title = W.make_unique_name("Whatever")
     ip.setTitle(title)
     self.assertEqual(ip.getTitle(), title)
     ip.show()
     ip_other = W.get_image_by_name(title)
     self.assertEqual(ip_other.getID(), ip.getID())
 def test_01_04_get_image_by_name(self):
     file_name = os.path.join(self.root_dir, "ExampleSBSImages",
                              "Channel1-01-A-01.tif")
     ip = I.load_imageplus(file_name)
     title = W.make_unique_name("Whatever")
     ip.setTitle(title)
     self.assertEqual(ip.getTitle(), title)
     ip.show()
     ip_other = W.get_image_by_name(title)
     self.assertEqual(ip_other.getID(), ip.getID())
 def test_01_07_make_unique_name(self):
     self.assertTrue(W.make_unique_name("Foo").startswith("Foo"))
 def test_01_07_make_unique_name(self):
     self.assertTrue(W.make_unique_name("Foo").startswith("Foo"))