import pytest

from PySide import QtGui

import qmenuview


def test_title(qtbot):
    title = 'Test title'
    qmenuview.MenuView(title)
    assert qmenuview.title() == title


def test_parent(qtbot):
    p = QtGui.QWidget()
    qmenuview.MenuView(parent=p)
    assert qmenuview.parent() is p

Add first simple title and parent test
Add first simple title and parent test

- import pytest
+ from PySide import QtGui
  
+ import qmenuview
+ 
+ 
+ def test_title(qtbot):
+     title = 'Test title'
+     qmenuview.MenuView(title)
+     assert qmenuview.title() == title
+ 
+ 
+ def test_parent(qtbot):
+     p = QtGui.QWidget()
+     qmenuview.MenuView(parent=p)
+     assert qmenuview.parent() is p
+ 
Add first simple title and parent test
## Code Before:
import pytest

## Instruction:
Add first simple title and parent test
## Code After:
from PySide import QtGui

import qmenuview


def test_title(qtbot):
    title = 'Test title'
    qmenuview.MenuView(title)
    assert qmenuview.title() == title


def test_parent(qtbot):
    p = QtGui.QWidget()
    qmenuview.MenuView(parent=p)
    assert qmenuview.parent() is p
