mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-21 22:18:52 +02:00
21 lines
425 B
Python
21 lines
425 B
Python
import unittest
|
|
|
|
from osc.gitea_api import Branch
|
|
|
|
|
|
class TestGiteaApiPullRequest(unittest.TestCase):
|
|
def test_object(self):
|
|
data = {
|
|
"name": "branch",
|
|
"commit": {
|
|
"id": "commit",
|
|
},
|
|
}
|
|
obj = Branch(data)
|
|
self.assertEqual(obj.name, "branch")
|
|
self.assertEqual(obj.commit, "commit")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|