#!/usr/bin/python
from subprocess import Popen, PIPE,STDOUT
cmd = 'gst-play-1.0 ../Media/sample.mp3'
obj=Popen(cmd, shell=True, stdin=PIPE,stdout=PIPE,stderr=PIPE, close_fds=True)
data=obj.stderr.read()
if len(data) == 0:
	print "Pass"
else:
	print "Fail"
