gitinspector/tests/test_interval.py
2021-05-13 13:42:09 -04:00

22 lines
556 B
Python

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)