mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
26 lines
748 B
Python
26 lines
748 B
Python
import unittest
|
|
import MockMockMock
|
|
|
|
from GithubObject import GithubObject, SimpleScalarAttributes
|
|
|
|
class TestCase( unittest.TestCase ):
|
|
def setUp( self ):
|
|
unittest.TestCase.setUp( self )
|
|
self.g = MockMockMock.Mock( "github" )
|
|
self.o = self.GithubTestObject( self.g.object, { "a1": 1, "a2": 2 }, lazy = True )
|
|
|
|
def tearDown( self ):
|
|
self.g.tearDown()
|
|
unittest.TestCase.tearDown( self )
|
|
|
|
class GithubObjectWithOnlySimpleAttributes( TestCase ):
|
|
GithubTestObject = GithubObject(
|
|
"GithubTestObject",
|
|
SimpleScalarAttributes( "a1", "a2", "a3", "a4" )
|
|
)
|
|
|
|
def testConstruction( self ):
|
|
pass # Everything is done in setUp/tearDown
|
|
|
|
unittest.main()
|