Example #1
0
	def test_File_Should_have_an_extension(self):
		filename = "C:\Python31\python.exe"
		info = FileInfo(filename)
		actual = info.extension()
		expected = "exe"
		self.assertEqual(actual, expected)
Example #2
0
	def test_Should_get_lowercase_extension(self):
		filename = "C:\Python31\PYTHON.EXE"
		info = FileInfo(filename)
		actual = info.extension()
		expected = "exe"
		self.assertEqual(actual, expected)