gitinspector/tests/test_interval.py

23 lines
556 B
Python
Raw Normal View History

2021-05-13 19:42:09 +02:00
import unittest
from gitinspector import interval
TEST_STRING = 'arbitrary'
class TestInterval(unittest.TestCase):
def test_has_interval(self):
actual = interval.has_interval()
self.assertFalse(actual)
def test_get_since(self):
expected = ''
actual = interval.get_since()
self.assertEqual(expected, actual)
def test_set_since(self):
expected = '--since=' + TEST_STRING
interval.set_since(TEST_STRING)
actual = interval.get_since()
self.assertEqual(expected, actual)