mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 08:12:55 +00:00
18 lines
454 B
Python
18 lines
454 B
Python
import os
|
|
import unittest
|
|
|
|
from centpkg import lookaside
|
|
|
|
|
|
class TestIsDistGit(unittest.TestCase):
|
|
def setUp(self):
|
|
cwd = os.path.dirname(os.path.realpath(__file__))
|
|
self.fixtures_dir = '%s/fixtures/layouts' % cwd
|
|
|
|
def test_dist_git(self):
|
|
path = '%s/dist-git' % self.fixtures_dir
|
|
assert lookaside.is_dist_git(path)
|
|
|
|
def test_dist_git_false(self):
|
|
path = '%s/srpm' % self.fixtures_dir
|
|
assert not lookaside.is_dist_git(path)
|