Mar-07-2019, 03:39 AM
Good evening,
I am running the unittest in Python for my code and I am getting errors/Failures. I am unsure how to fix it, or what the errors mean exactly. Can someone explain to me, please? I would really appreciate it.
One Failure is listed below:
I am running the unittest in Python for my code and I am getting errors/Failures. I am unsure how to fix it, or what the errors mean exactly. Can someone explain to me, please? I would really appreciate it.
One Failure is listed below:
def discover_path(self): self._src.endswith('.txt') src_type = 'path' with open('pride-and-prejudice.txt') as f: self._content = self._orig_content
Error:FAIL: test_discover_path (__main__.TestTextAnalyzer)
----------------------------------------------------------------------
Traceback (most recent call last):
File "<ipython-input-48-bce1ccf365eb>", line 16, in test_discover_path
self.assertEqual(ta._src_type, 'path')
AssertionError: 'discover' != 'path'
- discover
+ path