mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-11-16 08:38:26 +01:00
22 lines
556 B
Python
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)
|