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